<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>8.模拟一下Vue.extend</title>
	</head>
	<body>
		<script type="text/javascript" >
			//模拟一个Vue构造函数
			function Vue(){}

			//在Vue身上追加一个extend方法
			Vue.extend = function(){
				 return function VueComponent(){}
			}

			const Person = Vue.extend()
			const App = Vue.extend()

			console.log(Person)
			console.log(App)
			console.log(Person === App)

		</script>
	</body>
</html>